package com.atguigu.srb.sms;

import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {
        "com.atguigu.srb.sms","com.atguigu.service.base","com.atguigu.guigu.common"
})
@EnableFeignClients
public class SmsApplicaion {
    public static void main(String[] args) {
        SpringApplication.run(SmsApplicaion.class,args);
    }

    //配置feign的日志级别(feign的日志都采用debug的级别输出 但是可以调整输出哪些内容)
    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }

}
